<!DOCTYPE html>
<html lang="zh">
<head>
	<title>搜索 - PublicCMS</title>
	<meta name="keywords" content="搜索"/>
	<meta name="description" content="搜索  ${word!}"/>
<!--#include virtual="/include/header.html"-->
</head>
<body>
<!--#include virtual="/include/nav.html"-->
<main>
	<div class="container bread">
		<a href="${getSitePath()}">首页</a>
	</div>
	<div class="container">
		<div class="data-list left-content">
			<div class="search">
				<form action="search.html" method="get">
					<input type="text" name="word" value="${word!}"/>
					<input type="submit" value="搜索"/>
					<a href="facetSearch.html">高级搜索</a>
				</form>
			</div>
<#if word?has_content>
		<@_search word=word pageIndex=page count=10>
			<#assign prePath='search.html?word='+(word?url)!''+'&'/>
			<#include "include_page/meger.html"/>
			<#list page.list as a>
				<@meger 'cIds' a.categoryId/>
			</#list>
			<@_category ids=cIds>
				<#list page.list as a>
					<#assign category=map[a.categoryId?string]/>
					<dl>
						<#if a.cover?has_content><dd><a href="${getSitePath(a.url)}" target="_blank"><img src="${getUploadPath(getThumb(a.cover,200,160))}"/></a></dd></#if>
						<dt<#if a.cover?has_content> class="image"</#if>>
							<h3>[<a href="${getSitePath(category.url)}" target="_blank">${category.name}</a>]<a href="${getSitePath(a.url)}" target="_blank"><@t.cut a.title 36 '...'/></a></h3>
							<p><@t.cut a.description 65 '...'/><a href="${getSitePath(a.url)}" target="_blank"> 详细 &gt;&gt;</a> </p>
						</dt>
					</dl>
				</#list>
			</@_category>
			<#include "include_page/search_page.html"/>
		</@_search>
</#if>
		</div>
		<aside>
			<!--#include virtual="/include/category/list.html/1.html"--><#-- 右侧编辑推荐 -->
		</aside>
	</div>
</main>
<!--#include virtual="/include/footer.html"-->
</body>
</html>